<?php
/**
 * Description
 *
 * PHP version 7
 *
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-28 01:04:50
 * @lastTime 2020-05-01 23:09:38
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */
namespace Design\Behavioral\Iterator;

class Book
{

    private $name;

    private $author;


    public function __construct(string $name, string $author)
    {
        $this->name   = $name;
        $this->author = $author;

    }//end __construct()


    public function getAuthorAndTitle() : string
    {
        return $this->name.' by '.$this->author;

    }//end getAuthorAndTitle()


}//end class
